package com.zzfeidu.utils;

import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.jms.Queue;
import javax.jms.Topic;

@Component
public class JmsConfig {

    @Bean
    public Topic topic() {
        return new ActiveMQTopic("this.is.topic");
    }

    @Bean
    public Queue queue(){
        return new ActiveMQQueue("gyl.queue");
    }

    @Bean
    public Queue order(){
        return new ActiveMQQueue("mq.queue");
    }


}
